package org.example.project.entity;

import java.sql.Timestamp;

/**
 * @Author 岩
 * @Package org.example.project.entity
 * @Project MyApp
 * @Name Comment
 * @Date 2024-04-27 20:08
 * @Filename Comment
 */
public class Comment {
    private int id;
    private String content;
    private int userId;
    private int postId;
    private int likes;
    private Timestamp createDate;
    private String username;
    private String imgUrl;
    private int userType;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getPostId() {
        return postId;
    }

    public void setPostId(int postId) {
        this.postId = postId;
    }

    public int getLikes() {
        return likes;
    }

    public void setLikes(int likes) {
        this.likes = likes;
    }

    public Timestamp getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Timestamp createDate) {
        this.createDate = createDate;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public int getUserType() {
        return userType;
    }

    public void setUserType(int userType) {
        this.userType = userType;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", content='" + content + '\'' +
                ", userId=" + userId +
                ", postId=" + postId +
                ", likes=" + likes +
                ", createDate=" + createDate +
                ", username='" + username + '\'' +
                ", imgUrl='" + imgUrl + '\'' +
                ", userType=" + userType +
                '}';
    }
}
